WP_Defender\Controller\Two_Factor D

Total Complexity 139
Dependencies 18
Dependents 8
Total lines 991
Lines of code 641
Logical lines of code 313
Comment lines 260
Methods 35
Properties 5

Methods 35

Method Rating Maintainability Complexity Lines of code
verify_otp_login_time()
A
36 12 82
profile_update()
A
45 14 40
verify_otp_for_enabling()
A
46 10 41
maybe_show_otp_form()
A
49 10 29
__construct()
A
43 8 47
render_otp_screen()
A
47 8 35
show_user_profile()
S
50 7 28
maybe_redirect_to_show_2fa_enabler()
S
53 7 23
send_test_email()
S
41 4 63
handle_woocommerce_prevent_admin_access()
S
57 6 19
filter_users_by_2fa()
S
56 5 19
disable_totp()
S
55 5 18
handle_woocommerce_login_redirect()
S
59 5 15
send_backup_code()
S
53 3 27
alter_user_table_row()
S
62 3 11
save_settings()
S
54 2 24
store_session_key()
S
67 3 7
check_route()
S
77 3 3
generate_backup_codes()
S
58 1 16
import_data()
S
67 2 8
is_auth_enabled_for_user_role()
S
69 2 6
to_array()
S
63 2 10
export_strings()
S
70 2 6
listen_for_jetpack_option()
S
69 2 7
config_strings()
S
72 2 5
enqueue_assets()
S
64 2 10
data_frontend()
S
63 1 11
remove_data()
S
72 1 5
m2_no_ajax()
S
82 1 3
alter_users_table()
S
69 1 6
woocommerce_hooks()
S
71 1 5
remove_settings()
S
81 1 3
main_view()
S
81 1 3
redirect_url()
S
79 1 3
add_redirect_to_input()
S
79 1 3